#ifndef VOLUMEREADER_HPP
#define VOLUMEREADER_HPP

#include <QtCore>
#include "volumecontenthandler.hpp"

class VolumeReader {
  public:
    VolumeReader();
    VolumeReader(const QString &fileName);
    ~VolumeReader();
    void read(const QString &fileName);
    const Vector3i & getSize() const;
    double getDelta();
    const Vector3d & getPosition() const;
    unsigned char * getVoxels();
    int getNumVoxels();
  private:
    void init();
    QXmlSimpleReader *xmlReader;
    VolumeContentHandler *handler;
};

#endif
